class Date:
    def __init__(self, year, month, day):
        self.year = year
        self.month = month
        self.day = day

    @staticmethod
    def parse_from_string(date_as_string):
        year, month, day = map(int, date_as_string.split('-'))
        return Date(year, month, day)

    @classmethod
    def from_string(cls, date_as_string):
        year, month, day = map(int, date_as_string.split('-'))
        return cls(year, month, day)

    def __repr__(self):
        return f'{self.__class__.__name__}(year={self.year}, month={self.month}, day={self.day})'